<!doctype html>

<%@LANGUAGE="JScript"%>
<!--#include file ="Includes/JSON2.asp"-->
<!--#include file ="Includes/User.asp"-->
<!--#include file ="Includes/ASPHelpers.asp"-->

<%/*--- BEGIN ASP ------------------------------------------------------------------------------------*/
	var h = Helpers;
	
    var ContractID = Request.QueryString("ContractID");
    var TicketID = Request.QueryString("ticketid");
    var CurrentUser = User.CurrentUser();
    var FromDispatch = Request.QueryString("FromDispatch");
    
    

/*--- /END ASP -----------------------------------------------------------------------------------------*/%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>AccountTicketFrameSet</title>

</head>
 <% if( FromDispatch == "yes") { %>

	<frameset rows="300,500" framespacing="0"" frameborder="yes" border="0" bordercolor="#009900">
  		<frame src="CustomerInformation.asp?FromDispatch=yes&ContractID=<%= ContractID %>" name="AccountFrame" frameborder="no" scrolling="no" bordercolor="#006600" id="AccountFrame" title="AccountFrame" />
  		<frame src="TicketWindow.asp?FromDispatch=yes&Ticket_ID=<%= TicketID %>&user=<%= CurrentUser %>" name="TicketFrame" frameborder="no" scrolling="auto" id="TicketFrame" title="TicketFrame" />
</frameset>

<% }else{ %>

	<frameset rows="300,500" framespacing="0"" frameborder="yes" border="0" bordercolor="#009900">
  		<frame src="CustomerInformation.asp?ContractID=<%= ContractID %>" name="AccountFrame" frameborder="no" scrolling="no" bordercolor="#006600" id="AccountFrame" title="AccountFrame" />
  		<frame src="TicketWindow.asp" name="TicketFrame" frameborder="no" scrolling="auto" id="TicketFrame" title="TicketFrame" />
</frameset>

<% } %>
<noframes><body>
</body>
</noframes></html>
